//
//  MYXDetailViewModel.h
//  meiyinxiang
//
//  Created by apple on 2017/11/13.
//  Copyright © 2017年 hbjApple. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "NearbyLuckyMoneyDetail.h"
typedef void (^finishBlock)(BOOL success,NSString *message);
typedef void (^finishLeaveMessageBlock)(BOOL);
typedef void (^imgeFineshBlock)(BOOL);
@interface MYXDetailViewModel : NSObject
@property(nonatomic,strong) NSString *  luckyMoneyId;
@property(nonatomic,assign) double latitude;
@property(nonatomic,assign) double longitude;
@property(nonatomic,strong) NSString *  create_time;
@property(nonatomic,strong) NSString *  update_time;
@property(nonatomic,strong) NSString *  uid;
@property(nonatomic,strong) NSString *  money;
@property(nonatomic,strong) NSString *  title;
@property(nonatomic,strong) NSString *  content;
@property(nonatomic,strong) NSMutableArray *  file;//图片数组
@property(nonatomic,strong) NSString *  status;
@property(nonatomic,strong) NSString *  sex;
@property(nonatomic,strong) NSString *  tuijian;
@property(nonatomic,strong) NSString *  radius;
@property(nonatomic,strong) NSString *  ticket_id;
@property(nonatomic,strong) NSString *  username;
@property(nonatomic,strong) NSString *  userface;
@property(nonatomic,strong) NSString *  my_money;
@property(nonatomic,strong) NSString *  rcount;
@property(nonatomic,strong) NSString *  restcount;
@property (nonatomic,assign) CGFloat cellHeight;
@property (nonatomic,assign) CGSize pictureViewSize;
@property (nonatomic,assign) CGFloat imgWidth;
@property (nonatomic,assign) CGFloat imgHieht;
@property (nonatomic,strong) NSString *isreceived;//0 代表为接受过此红包，1为已经接受过此红包，2为刚接受此红包返回详情
/**
 收藏数
 */
@property(nonatomic,strong) NSString * markcount;

/**
 点赞数量
 */
@property(nonatomic,strong) NSString * zancount;

/**
 评论数量·
 */
@property(nonatomic,strong) NSString * commentcount;
/**
 评论标示
 == -1 没有权限评价
 == 1 进入评价详情
 == 2 在本页面调用原来评价接口
 */
@property (nonatomic,strong) NSString *comment_status;
@property (nonatomic,strong) NSString *isController;
@property (nonatomic,strong) NSString<Optional> *smallLuckyMoneyId;
@property (nonatomic,strong) NSString<Optional> *smallLuckyMoneyNum;
@property (assign,nonatomic) BOOL isMessageEnable;
@property (nonatomic,copy) NSMutableArray
<NearbyLuckyMoneyDetail>* list;
@property (nonatomic,assign) NSInteger page;
@property (nonatomic,strong) NSMutableArray *marray;
@property (nonatomic,copy) imgeFineshBlock singleImgFinishBlock;
@property (nonatomic,assign) BOOL singleDownloaderFinished;//单张图片下载完成
@property (nonatomic,assign) BOOL isSecondRefresh;//广告完成后第二次刷新
@property (nonatomic,strong)  NSString *inputbarString;
@property (nonatomic,copy)   finishLeaveMessageBlock finishmsgBlock;


+ (MYXDetailViewModel *)initWithNearLuckyListModel:(NearbyluckyMoneyDetailList *)nearLuckyDetailList;
- (void)getLuckyMoneywithCompletion:(finishBlock)completion;
- (void)leaveMessageWithConten:(NSString *)content Completion:(finishBlock)completion;
- (void)showCommentTextWithFinshBlock:(finishLeaveMessageBlock)leavemsgBlock;
- (void)hidekeybord;
//加载更多抢红包
- (void)getMoneyDetailWithIsPullup:(BOOL)isPullup Completion:(finishBlock)completion;

@end
